﻿using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AppsModel.Data_Layer
{
    public class Helper
    {
        //private static string connectionString = "Data Source=swlnk-app1.ipendo-hosting.local;Initial Catalog=marabr;Persist Security Info=True;User ID=marabr;Password=marabr";
        private static string connectionString = "Server=tcp:pthi7o24nu.database.windows.net,1433;Database=marabr;User ID=marabr@pthi7o24nu;Password=Play3Lin1011;Trusted_Connection=False;Encrypt=True;Connection Timeout=30;";

        public static SqlConnection createConnection()
        {
            SqlConnection conn = new
                    SqlConnection(connectionString);
            conn.Open();
            return conn;
        }
    }
}
